//
// Created by zhupi on 2024/12/1.
//

#ifndef DEMO2_MUTIL_CONTENS_DIALOG_H
#define DEMO2_MUTIL_CONTENS_DIALOG_H

#include <QDialog>
#include <QVBoxLayout>
#include <QComboBox>
#include <QListWidget>
#include <QLabel>

// mutil_contens_dialog.h
class MutilContensDialog : public  QDialog
{
    Q_OBJECT
public:
    MutilContensDialog(const QString &title, QWidget *parent);
    void Init();
    void SetLeftData(const std::vector< std::pair< QString, QStringList>> &dataList);

private:
    void MainWindow(QVBoxLayout *mainVbox);
    void InitRigth(QVBoxLayout *mainVbox);
    void InitLeft(QVBoxLayout *mainVbox);


    void LeftListClick(QListWidgetItem *current, QListWidgetItem *previous);

private:
    QListWidget *firstList_ {nullptr};
    QListWidget *secondList_ {nullptr};

    QComboBox *projectCombox_ {nullptr};
};


#endif //DEMO2_MUTIL_CONTENS_DIALOG_H
